package com.bigpang.framework.redis.baseopt.hyperLogLog;

import redis.clients.jedis.Jedis;

/**
 * @Author YongQiang
 * @Date 2021/6/9 10:43
 * @Version 1.0
 */
public class HyperLogDemo {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("10.130.132.137",6379);

        //jedis.pfadd("hyperkey","1","2","3");

        String hyperkey = jedis.type("hyperkey");
        System.out.println(hyperkey);

        System.out.println(jedis.pfcount("hyperkey"));

        jedis.pfadd("hyperkey2","1","1","2");
        System.out.println(jedis.pfcount("hyperkey2"));
        jedis.close();

    }
}
